///////////////////////////////////////////////////////////////
// Copyright(c) ephiroth
// 
// FileName : formula_2power.c
// Creator  : ephiroth
// E-Mail   : ephiroth@gmail.com
// Date     : 2009-04-27
// Comment  : 
//
///////////////////////////////////////////////////////////////
#include "comm.h"


static  int func_xdhh ( int index , U8 * data)
{
	int ret ;
	int a , b ;
	a = trim_char ( data[23],1,5);
	b = trim_char ( data[24],1,4);
	if ( index == 0 ) 
		ret = a;
	else if ( index == 1 ) 
		ret = b;	
	else
	{
	ret = func_xdhh ( index - 1 , data ) * func_xdhh (index - 2 , data ) - index;
	_DEBUG_("%d\n%d\n%d\n",a,b,ret);
	}
	return ret ;	

}

static void help_xdhh ( U8 * data  )
{
	
	printf("[相对混合]:前两个数运算减去一等差数列为后一数");
	

}

formula formula_xdhh = {
	"xdhh",
	ft_normal ,
	6,
	func_xdhh,
	help_xdhh,

};	
